<div class="am-u-sm-12 widget main-w">
	<ol class="am-breadcrumb">
		<li>
			<a href="{:url('/admin/index')}">首页</a>
		</li>
		<li>
			<a href="{:url('index')}">业务管理</a>
		</li>
		<li class="am-active">车辆统计</li>
	</ol>
	<div class="am-u-sm-12 cl-p">
		<div class="am-u-sm-12 cl-p">
			<form class="am-form-inline tpl-form-border-form" action="" method="get">
				<div class="am-u-sm-12 cl-p">
					<div class="am-u-sm-2 ">
						<div class="am-u-sm-4 am-form-group cl-p">
							<select class="driverstat" data-am-selected="{btnWidth:'100%', btnSize: 'sm'}">
								<option value="1">车辆</option>
								<option value="2">公司</option>
							</select>
						</div>
						<div class="am-u-sm-8 am-form-group cl-p">
							<input type="text" data-carstat='1' name="number" style="height: 32px;" class="number tpl-form-input car_number" value="{$Think.get.number}" placeholder="点击选择车辆" readonly="" />
							<input type="hidden" data-carstat='1' style="height: 32px;" class="company car_rental tpl-form-input" value="{$Think.get.company}" placeholder="点击选择公司" readonly="" />
							<span class="input-group-addon close-input"><i class="am-icon-close"></i></span> 
						</div>
					</div>
					<div class="am-u-sm-2 ">
						<div class="am-u-sm-12 cl-p">
							<select class="entrust_use" name="entrust_company_id" style="height: 32px;">
								<option {$Think.get.entrust_company_id? '':selected} value="">委托公司-全部</option>
								{$entrust_companys}
							</select>
						</div>
					</div>
					<div class="am-u-sm-2 ">
						<div class="am-u-sm-12 cl-p">
							<select class="prop" name="prop" style="height: 32px;" value="{$Think.get.prop}">
								<option {$Think.get.prop? '':selected} value="">车辆性质-全部</option>
								<option {$Think.get.prop==2?selected: ""} value="2">一般</option>
								<option {$Think.get.prop==3?selected: ""} value="3">行政执法</option>
								<option {$Think.get.prop==4?selected: ""} value="4">四办用车</option>
							</select>
						</div>
					</div>
					<div class="am-u-sm-2 ">
						<div class="am-u-sm-12 cl-p">
							<select class="filter" name="filter" style="height: 32px;" value="{$Think.get.filter}">
								<option {$Think.get.filter? '':selected} value="">车辆筛选-全部</option>
								<option {$Think.get.filter==1?selected: ""} value="1">公务车辆</option>
								<option {$Think.get.filter==2?selected: ""} value="2">自营车辆</option>
								<option {$Think.get.filter==3?selected: ""} value="3">租赁车辆</option>
								<option {$Think.get.filter==4?selected: ""} value="4">加盟车辆</option>
							</select>
						</div>
					</div>
					<div class="am-u-sm-4 ">
						<button type="submit" class="am-btn am-btn-sm am-btn-primary am-radius" style="margin-top: -2px;">查询<i class="am-icon-search"></i></button>
					</div>
				</div>
				<!--<div class="am-u-sm-12 timeclassify" style="margin-top: 10px;">
					<input type="hidden" name="time" class="time" />
					<a href="{:url('stat')}" class="am-btn am-radius am-btn-sm {$Think.get.time!=month&&$Think.get.time!=year&&$Think.get.time!=day?'am-btn-success':'am-btn-primary'} year" style="margin-top: -2px;">全部</a>
					<button type="submit" data-val='day' class="am-btn {$Think.get.time==day?'am-btn-success':'am-btn-primary'} am-btn-sm am-radius day" style="margin-top: -2px;">今日</button>
					<button type="submit" data-val='month' class="am-btn am-btn-sm {$Think.get.time==month?'am-btn-success':'am-btn-primary'} am-radius month" style="margin-top: -2px;">本月</button>
					<button type="submit" data-val='year' class="am-btn am-radius am-btn-sm {$Think.get.time==year?'am-btn-success':'am-btn-primary'} year" style="margin-top: -2px;">今年</button>
				</div>-->
			</form>
		</div>
		<div class="am-u-sm-12" style="padding: 10px 0;">
			<div class="am-u-sm-12   cl-p">
				<div class="am-u-sm-12 cl-p">
					<div class="am-u-sm-12 am-u-md-5 am-u-lg-5 cl-p">
					<div class="am-u-sm-12 ">
	                    <div class="widget widget-primary am-cf">
	                        <div class="widget-statistic-header">车辆数量</div>
	                        <div class="widget-statistic-body">
	                            <div class="widget-statistic-value">{$item.total?:'-'}<small style="font-size: 20px;">辆</small></div>
	                            <span class="widget-statistic-icon am-icon-car"></span>
	                        </div>
	                    </div>
	                </div>
	                <div class="am-u-sm-12 cl-p">
	                	<div class="am-u-sm-6">
		                	<div class="widget widget-primary am-cf">
		                		<div class="widget-statistic-header">公务车数量</div>
		                		<div class="widget-statistic-body">
		                			<div class="widget-statistic-value">{$item.beidou?:'-'}<small style="font-size: 20px;">辆</small></div>
		                			<span class="widget-statistic-icon am-icon-car"></span>
		                		</div>
		                	</div>
	                	</div>
	                	<div class="am-u-sm-6">
		                	<div class="widget widget-primary am-cf">
		                		<div class="widget-statistic-header">搜索结果</div>
		                		<div class="widget-statistic-body">
		                			<div class="widget-statistic-value">{$item.all?:'-'}<small style="font-size: 20px;">辆</small></div>
		                			<span class="widget-statistic-icon am-icon-car"></span>
		                		</div>
		                	</div>
	                	</div>
	                </div>
	                </div>
	              	<div class="am-u-sm-12 am-u-md-7 am-u-lg-7">
		              	<div class="am-u-sm-12">
							<div id="water" style="height: 380px;"></div>
		              	</div>
		              
	              	</div>
                </div>
                <div class="am-u-sm-12 cl-p">
					<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
	                    <div class="widget widget-purple am-cf"  style="min-height:  161px;">
	                        <div class="widget-statistic-header">维保</div>
	                        <div class="widget-statistic-body">
	                            <div class="widget-statistic-value">{$item.service_amount?:'-'}<small style="font-size: 20px;">元</small></div>
	                            <div class="widget-statistic-description"> 维保次数 <strong>{$item.service_times?:'-'}</strong> 次 </div>
	                            <span class="widget-statistic-icon am-icon-server"></span>
	                        </div>
	                    </div>
	                </div>
	                <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
	                	<div class="widget widget-purple am-cf" style="min-height: 161px;">
	                		<div class="widget-statistic-header">年检</div>
	                		<div class="widget-statistic-body">
	                			<div class="widget-statistic-value">{$item.survey?:'-'}<small style="font-size: 20px;">元</small></div>
	                			<span class="widget-statistic-icon am-icon-server"></span>
	                		</div>
	                	</div>
	                </div>
	                <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
	                	<div class="widget widget-purple am-cf" style="min-height:  161px;">
	                		<div class="widget-statistic-header">加油</div>
	                		<div class="widget-statistic-body">
	                			<div class="widget-statistic-value">{$item.amount?:'-'}<small style="font-size: 20px;">元</small></div>
	                			<div class="widget-statistic-description"> 加油次数 <strong>{$item.fuel_times?:'-'}</strong> 次 </div>
	                			<span class="widget-statistic-icon am-icon-server"></span>
	                		</div>
	                	</div>
	                </div>
	                <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
	                	<div class="widget widget-purple am-cf"  style="min-height:  161px;">
	                		<div class="widget-statistic-header">保险</div>
	                		<div class="widget-statistic-body">
	                			<div class="widget-statistic-value">{$item.insure?:'-'}<small style="font-size: 20px;">元</small></div>
	                			<span class="widget-statistic-icon am-icon-server"></span>
	                		</div>
	                	</div>
	                </div>
	               
                </div>
				<div class="am-u-sm-12 ">

					<div class="am-g">
						<div class="am-u-sm-12 ">
							<div class="am-u-sm-12 cl-p blockdiv">
								<div class="am-u-sm-12 widget-head ">委托车辆数
									 <small class="am-fr"><a class="entrust">查看更多</a></small></div>
								<div class="am-u-sm-12">
									<ul class="am-u-sm-12">
										{foreach $entrust as $key => $en}
										<li class="am-fl enshow am-text-truncate" style="width: 50%;font-size: 12px;"><a class="" href="{:url('car/index',['company_id'=>$en.id])}" style="font-size: 12px;">{$en.name}</a><span style="font-size:20px;">{$en.count}</span>辆</li>
										{/foreach}
									</ul>
								</div>
								<!--<div class="am-u-sm-7">
									<div id="fuelconsumption" style="height: 150px;margin-top: 20px;">
									</div>
								</div>-->
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		
	</div>
</div>